import java.util.Scanner;

class Child {
    private String name;
    private int age;
    private String gender;
    private int height;


    public Child(String name, int age, String gender, int height) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String toString() {
        if(gender.equals("M")){
            return "男孩"+name+"的年龄是"+age+"岁,身高是"+height+"厘米";
        }else {
            return "女孩"+name+"的年龄是"+age+"岁,身高是"+height+"厘米";
        }

    }
}
class BodyCheck{
    //请按要求将代码补充完整
    private int standardHeight;
    public void checkHeight(Child c) throws heightException {
        calcStandardHeight(c);
        if(c.getGender().equals("M")){
            standardHeight=c.getAge()*6+75;
        }
        if(c.getGender().equals("F")){
            standardHeight=c.getAge()*6+70;
        }
        if(c.getHeight()<standardHeight){
            throw new heightException(c.getName()+"小朋友身高不达标,还差"+(standardHeight-c.getHeight())+"厘米");
        }else{
            throw new heightException((c.getName()+"小朋友身高达标"));
        }
    }
    public void calcStandardHeight(Child c)throws heightException{



    }
}
class heightException extends Exception{
    private String msg;
    public heightException(String msg) {
        this.msg = msg;
    }

    public String toString() {
        return msg;
    }
}
public class Main {

    public static void main(String[] args)  {
        int choice = -1;  //代码结构检查选项，请严格按题目要求编写代码即可
        Scanner sc=new Scanner(System.in);
        choice = sc.nextInt();  //每个测试用例第1行输入均为代码结构检查选项
        sc.nextLine();   //读入代码结构检查选项输入后的回车符，请忽略

        String[] input;
        input=sc.nextLine().split(" ");
        Child c1=new Child(input[0],Integer.parseInt(input[1]),input[2],Integer.parseInt(input[3]));
        //结构检查代码
        BodyCheck check=new BodyCheck();
        System.out.println(c1);
        try {
            check.checkHeight(c1);
        }
        catch (heightException e) {
            System.out.println(e);
        }
    }

}
//请在此处填入完整的Child类、BodyCheck类和heightException类代码